<template>
  <div>
    <h2>hello world</h2>
    <h3>这是一个全局主题变量</h3>
    <el-button type="primary" @click="Login()">登陆</el-button>
    <el-button type="primary" @click="loginAction()">测试</el-button>
    <el-button type="primary" @click="getAction()">获取</el-button>
  </div>
</template>

<script>
import { Login, getInfo } from '@/api/user'
export default {
    name: 'Home',
    data () {
        return {
        }
    },
    methods: {
        Login () {
            this.$router.push('/login')
        },
        async loginAction () {
            // const data = await Login('abc', '123')
        },
        async getAction () {
            // const data = await getInfo('abc', '123')
        }
    }
}
</script>
<style lang="scss">
  h3 {
    color: $warnColor;
  }
</style>
